package sudroid.security;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import sudroid.LogUtils;

public class MD5
{
  public static String hexdigest(String paramString)
  {
    String str = null;
    char[] arrayOfChar1 = { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null };
    try
    {
      MessageDigest localMessageDigest = MessageDigest.getInstance("MD5");
      byte[] arrayOfByte1 = paramString.getBytes();
      localMessageDigest.update(arrayOfByte1);
      byte[] arrayOfByte2 = localMessageDigest.digest();
      char[] arrayOfChar2 = new char[32];
      int i = 0;
      int j = 0;
      while (true)
      {
        if (i >= 16)
        {
          str = new String(arrayOfChar2);
          return str;
        }
        int k = arrayOfByte2[i];
        int m = j + 1;
        int n = k >>> 4 & 0xF;
        int i1 = arrayOfChar1[n];
        arrayOfChar2[j] = i1;
        j = m + 1;
        int i2 = k & 0xF;
        int i3 = arrayOfChar1[i2];
        arrayOfChar2[m] = i3;
        i += 1;
      }
    }
    catch (NoSuchAlgorithmException localNoSuchAlgorithmException)
    {
      while (true)
        LogUtils.e(localNoSuchAlgorithmException);
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.security.MD5
 * JD-Core Version:    0.6.0
 */